def gen(base):
    def gen_base(num):
        return num*base
    return gen_base
f1 = gen(10)
print(f1(2))
f2 = gen(20)
print(f2(2))
